package com.snopy.leetcode;

/**
 * @author snopy
 * @version 1.0.0
 * @classname TreeNode
 * @description 树节点
 * @email 77912204@qq.com
 * @date 2022/03/17 13:25
 */
public class TreeNode {
    /*
    * 节点值
    * */
    public int val;
    /*
    * 左子树
    * */
    public TreeNode left;
    /*
    * 右子树
    * */
    public TreeNode right;
    /**
     * @Description 无参构造函数
     * @return: null
     * @Date 2022-03-17
     * @Author txl77912204@gmail.com
     **/
    public TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
